package com.idelan.commonMessage.model;

import javax.validation.constraints.NotBlank;

/**
* @Description:    java类作用描述
* @Author:         jzhou
* @CreateDate:     2018\7\19 0019 9:22
* @UpdateUser:     jzhou
* @UpdateDate:     2018\7\19 0019 9:22
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
public class RabbitmqReceiveParameter {

    @NotBlank(message = "监听的队列名不能为空！")
    private String queueName;
    @NotBlank(message = "主机不能为空！")
    private String host;
    @NotBlank(message = "端口号不能为空！")
    private Integer port;

    @Override
    public String toString() {
        return "RabbitmqReceiveParameter{" +
                "queueName='" + queueName + '\'' +
                ", host='" + host + '\'' +
                ", port=" + port +
                '}';
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
}
